package nc.tb.cube.fmldim;

import java.awt.event.ActionEvent;

public class DimDirectionChangeEvent extends ActionEvent {
	
	private int old_type;
	private int new_type;
	private String pk_dimdef;

	public DimDirectionChangeEvent(Object source, int id, String command) {
		super(source, id, command);
		Object[] value = (Object[])source;
		pk_dimdef = (String)value[0];
		old_type = ((Integer)value[1]).intValue();
		new_type = ((Integer)value[2]).intValue();
	}
	
	public int getOldValue() {
		return old_type;
	}
	
	public int getNewValue() {
		return new_type;
	}
	
	public String getPk_dimdef() {
		return pk_dimdef;
	}

}
